home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
3D World 111
/
3DW_111.iso
/
pc
/
Menu
/
Scenes
/
home.dir
/
00060_Script_Gallery Generate
< prev
next >
Wrap
Text File
|
2008-09-12
|
1KB
|
46 lines
global gMenuList
global gFullPath
global SectionNumber
global SectionPath
global finalchan
on exitFrame me
member("SectionTitle").text = "GALLERY"
p = gMenuList[SectionNumber]
SectionPath = p.ItemPath
li = p.ItemList
lH = 20
lV = 100
offs = 20
myTitle = "GALLERY"
pline = 1
repeat with i = 1 to the number of members of castlib "SubItems"
if member(i, "subItems").name contains myTitle then
channel(finalChan + pLine).removescriptedsprite()
channel(finalChan + pLine).makescriptedsprite(member(i, "subItems"), point(lH,lV))
sprite(finalChan + pLine).scriptInstanceList = []
add(sprite(finalChan + pLine).scriptInstanceList, new(script "gallery_button", 1))
_movie.sendSprite(finalChan + pLine, #Initialize, (finalChan + pLine), pLine)
sprite(finalChan + pLine).ink = 36
lV = lV + 20
if pLine = 1 then
pSp = finalChan + pLine
pnum = pLine
end if
pLine = pLine + 1
end if
end repeat
aPath = gMenuList[SectionNumber].itemList[pnum].itemPath
sendsprite(pSp, #GenerateGallery, apath)
end